-- GENERATED SPELL FOR [En'kilah Abomination] --


function spell0_25383(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25383', 587, 1)
end

function spell1_25383(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25383', 1000, 1)
end

function Sorts_25383(pUnit, Event)
local choix_sorts_25383 = math.random(0, 1)
if choix_sorts_25383 == 0 then
pUnit:RegisterEvent('spell0_25383', 1, 1)
end
if choix_sorts_25383 == 1 then
pUnit:RegisterEvent('spell1_25383', 1, 1)
end
end

function mob25383_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25383', math.random(1500, 3000), 1)
end

function mob25383_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25383_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25383_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25383, 1, 'mob25383_Action')
RegisterUnitEvent(25383, 2, 'mob25383_Leave')
RegisterUnitEvent(25383, 3, 'mob25383_Kill')
RegisterUnitEvent(25383, 4, 'mob25383_Die')
